package librus.cheeseChaser.tile
{
	import librus.cheeseChaser.util.Util;

	public class DeckCreator
	{
		public function DeckCreator()
		{
		}

		public static const DECK_BASE:Array = [
			TileType.CAT,
			TileType.MOUSE_BROWN, 
			TileType.TRAP, 
			TileType.CHEESE,
			TileType.MOUSE_GREY ];
		
		public function getNewDeck():Array
		{
			var result:Array = [];
			for (var i:int=0; i< DECK_BASE.length;i++)
			{
				var type:TileType = DECK_BASE[i] as TileType;
				
				for (var j:int =0; j< type.count; j++)
				{
					result.push(new Tile(type));
				}
			}		
			
			return Util.shuffleArray(result);
		}				
	}
}